Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dotnet][linker] Enable the sealer optimization #12009

Merged
merged 7 commits into from
Aug 10, 2021

Conversation

spouliot
Copy link
Contributor

@spouliot spouliot commented Jun 23, 2021

when (by default)

  • building for release
  • building a non-extensible app (e.g. no JIT or interpreter since new code (codegen or download) might subclass or override the members analyzed at build time

This has minimal impact on size (mono does not yet optimize this) but it ease the comparison of binaries between legacy and dotnet.

Reverts c56b893
Fix #9573

when (by default)
* the interpreter is not enabled (since new code might subclass or override the members analyzed at build time)
* building for release

Reverts xamarin@c56b893
Fix xamarin#9573

Work-in-progress:
* should be made easier to enable/disable (from user projects)
* the above conditions should be the default (if nothing is specified)
@spouliot spouliot added the do-not-merge Do not merge this pull request label Jun 23, 2021
@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

5 tests failed, 107 tests passed.

Failed tests

  • monotouch-test/Mac Catalyst/Debug [dotnet]: Failed (Tests run: 2622 Passed: 2489 Inconclusive: 35 Failed: 1 Ignored: 132)
  • link all/iOS Unified 64-bits - simulator/Release [dotnet]: Failed
  • link all/tvOS - simulator/Release [dotnet]: Failed
  • link sdk/iOS Unified 64-bits - simulator/Release [dotnet]: Failed
  • link sdk/tvOS - simulator/Release [dotnet]: Failed

Pipeline on Agent XAMBOT-1100.BigSur'
Merge 09bce94 into c4d5433

Sebastien Pouliot added 2 commits August 4, 2021 13:45
Even if possible (in metadata) there is no point in setting `final` on
a method if we remove `virtual`. This match ILLink version of the sealer
and makes the same test pass on both.
@spouliot spouliot changed the title [WIP][dotnet][linker] Enable the sealer optimization [dotnet][linker] Enable the sealer optimization Aug 4, 2021
@spouliot spouliot marked this pull request as ready for review August 4, 2021 21:29
@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (only version changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

2 tests failed, 117 tests passed.

Failed tests

  • link sdk/iOS Unified 64-bits - simulator/Release [dotnet]: Failed
  • link sdk/tvOS - simulator/Release [dotnet]: Failed

Pipeline on Agent XAMBOT-1098.BigSur'
Merge f1de3c5 into fa5f323

Sebastien Pouliot added 4 commits August 5, 2021 19:34
features (like XML serialization) checks for
`RuntimeFeature.IsDynamicCodeSupported` and that requires some types
to be subclassed thru SRE
@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (only version changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

1 tests failed, 122 tests passed.

Failed tests

  • link all/Mac Catalyst/Debug [dotnet]: TimedOut (Execution timed out after 1200 seconds.
    No test log file was produced)

Pipeline on Agent XAMBOT-1101.BigSur'
Merge 1a560c7 into 9307052

@spouliot
Copy link
Contributor Author

Failure unrelated to PR -> https://github.com/xamarin/maccore/issues/2414

@spouliot spouliot merged commit a20d417 into xamarin:main Aug 10, 2021
@spouliot spouliot deleted the dotnet-sealer branch August 10, 2021 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge Do not merge this pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[.NET 6] Enable the sealer optimization in the linker
5 participants